<template>
  <el-dialog :title="title" :visible.sync="dialogVisible" width="40%"
             :close-on-click-modal="false" :close-on-press-escape="false"
             destroy-on-close>
    <el-timeline :reverse="false">
      <el-timeline-item :timestamp="item.createTime" placement="top" v-for="(item, i) in logisticsData" :key="i">
        <h4>{{item.logistics}}</h4>
      </el-timeline-item>
    </el-timeline>
  </el-dialog>
</template>

<script>
  export default {
    name: 'logistics',
    data() {
      return {
        title: '物流查看',
        dialogVisible: false,
        logisticsData: []
      }
    },
    methods: {
      openLogistics(data) {
        this.dialogVisible = true;
        this.logisticsData = data;
      }
    }
  }
</script>

<style scoped>

</style>
